package com.hyk.utils;

import com.hyk.dto.ApiResult;
import com.hyk.enums.ApiEnum;

public class R {

    public static ApiResult ok(){
        return new ApiResult(ApiEnum.SUCCESS);
    }
    public static ApiResult ok(Object data){
        return new ApiResult(ApiEnum.SUCCESS,data);
    }

    public static ApiResult no(){
        return new ApiResult(ApiEnum.FAIL);
    }
    public static ApiResult no(ApiEnum apiEnum){
        return new ApiResult(apiEnum);
    }

}
